<?php
session_start();
$callback = $_SESSION['idCardLoginInfo']['callback'];
if( isset($_SERVER['SSL_CLIENT_VERIFY']) && $_SERVER['SSL_CLIENT_VERIFY'] == 'SUCCESS' ) {
	$_SESSION['idCardLoginInfo'] = array(
		'status' => true,
		'data' => $_SERVER['SSL_CLIENT_S_DN'],
	);
} else {
	$_SESSION['idCardLoginInfo'] = array(
		'status' => false,
		'data' => '',
	);
}
if( $callback != '') {
	header('location: '.$callback);
} else {
	die('Unknown direct');
}
?>